import requests
from lxml import etree



url = 'https://quotes.toscrape.com/page/1/'

res = requests.get(url)
tree = etree.HTML(res.text)
datas = tree.xpath('//div[@class="row"]//div[@class="quote"]')
for data in datas:
    text = data.xpath('.//span[@class="text"]/text()')[0][1:-1]
    author = data.xpath('.//small[@class="author"]/text()')[0]
    tags = data.xpath('.//div[@class="tags"]/a/text()')
    print({'text': text, 'author': author, 'tags': tags})
    